﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngCase.aspx.cs" Inherits="LDSP.UI.Admin.MngCase" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>
        <%=TitleName %>管理</title>
    <script type="text/javascript">
        $(function () {
            var ctrl = $('#expand');
            ctrl.attr("isExpand", true);
            ctrl.bind("click", function () { ShowFilterArea('filterArea', ctrl, 1); });
            ShowFilterArea('filterArea', ctrl, 1);
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">
                <%=TitleName %>管理：</span>
        </div>
        <div class="mngTitle">
            <span class="mngEmphasis">
                <%=TitleName %>列表</span>
            <asp:Label ID="TotalRecords" runat="server" Text="Label" CssClass="searchResultLabel"></asp:Label>
        </div>
        <fieldset>
            <legend>查询</legend>
            <table id="filterArea" class="mngDetail">
                <tr>
                    <td class="itemLabel">
                        全文包含：
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_name" runat="server" CssClass="itemCtrl" OnFocus="javascript:if(this.value=='名称，发布机构，概述等') {this.value='';this.style.color='black'}"
                            OnBlur="javascript:if(this.value==''){this.value='名称，发布机构，概述等';this.style.color='silver'}"
                            ForeColor="Silver">名称，发布机构，概述等</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                    </td>
                    <td class="itemValue">
                        <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />&nbsp;
                        <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </fieldset>
        <div class="mngList" id="div_listFrame" style="width: 100%; overflow-x: auto;" runat="server">
            <div class="mngList">
                <asp:Button ID="btn_add" runat="server" Text="添加" OnClick="btn_add_Click" CssClass="mngBtn" /><asp:Button
                    ID="btn_delete" runat="server" Text="删除选中" OnClientClick="return confirm('您确认要删除么？')"
                    OnClick="btn_delete_Click" CssClass="mngBtn" />
                <asp:Button ID="btn_export" runat="server" Text="导出选中" CssClass="mngBtn" OnClick="btn_export_Click" />
            </div>
            <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                BackColor="#666699" BorderColor="#999999" AllowPaging="true" AllowSorting="true"
                CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                OnSorting="grd_list_Sorting">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                    ForeColor="white" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chb" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="序号" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField DataField="name" HeaderText="法规名称" SortExpression="name" ItemStyle-Width="250px">
                    </asp:BoundField>
                    <asp:BoundField HeaderText="类别" SortExpression="categoryID" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="Organization" HeaderText="发布机构" SortExpression="Organization"
                        ItemStyle-Width="100px"></asp:BoundField>
                    <asp:BoundField DataField="ReferenceNumber" HeaderText="发布文号" SortExpression="ReferenceNumber"
                        ItemStyle-Width="100px"></asp:BoundField>
                    <asp:BoundField DataField="ReleaseDT" HeaderText="发布日期" SortExpression="ReleaseDT"
                        ItemStyle-Width="60px"></asp:BoundField>
                    <asp:BoundField DataField="ImplementDT" HeaderText="生效日期" SortExpression="ImplementDT"
                        ItemStyle-Width="60px"></asp:BoundField>
                    <asp:BoundField DataField="UploadDT" HeaderText="上传日期" SortExpression="UploadDT"
                        ItemStyle-Width="60px"></asp:BoundField>
                    <asp:BoundField DataField="IsValid" HeaderText="有效" SortExpression="IsValid" ItemStyle-Width="30px">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Summary" HeaderText="法规概述" SortExpression="Summary"></asp:BoundField>
                    <asp:BoundField DataField="KeyItems" HeaderText="关键条款" SortExpression="KeyItems"
                        ItemStyle-Width="350px"></asp:BoundField>
                    <asp:BoundField DataField="Action" HeaderText="实施措施" SortExpression="Action" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="comment" HeaderText="备注" SortExpression="comment"></asp:BoundField>
                    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                                CommandName="updateItem" Text="修改"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="deleteItem"
                                OnClientClick="return confirm('您确认要删除么？')" Text='删除' CommandArgument='<%# Eval("id") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="55px" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
            <asp:Button ID="Button1" runat="server" Text="添加" OnClick="btn_add_Click" CssClass="mngBtn" /><asp:Button
                ID="Button2" runat="server" Text="删除选中" OnClientClick="return confirm('您确认要删除么？')"
                OnClick="btn_delete_Click" CssClass="mngBtn" />
            <asp:Button ID="Button3" runat="server" Text="导出选中" CssClass="mngBtn" OnClick="btn_export_Click" />
        </div>
    </div>
    </form>
</body>
</html>
